home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / misc / SoftCache$EntrySet.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.3 KB  |  48 lines

  1. package sun.misc;
  2.  
  3. import java.util.AbstractSet;
  4. import java.util.Iterator;
  5. import java.util.Set;
  6. import sun.misc.SoftCache.Entry;
  7.  
  8. class SoftCache$EntrySet extends AbstractSet {
  9.    Set hashEntries;
  10.    // $FF: synthetic field
  11.    final SoftCache this$0;
  12.  
  13.    private SoftCache$EntrySet(SoftCache var1) {
  14.       this.this$0 = var1;
  15.       this.hashEntries = SoftCache.access$700(this.this$0).entrySet();
  16.    }
  17.  
  18.    public Iterator iterator() {
  19.       return new SoftCache.EntrySet.1(this);
  20.    }
  21.  
  22.    public boolean isEmpty() {
  23.       return !this.iterator().hasNext();
  24.    }
  25.  
  26.    public int size() {
  27.       int var1 = 0;
  28.       Iterator var2 = this.iterator();
  29.  
  30.       while(var2.hasNext()) {
  31.          ++var1;
  32.          var2.next();
  33.       }
  34.  
  35.       return var1;
  36.    }
  37.  
  38.    public boolean remove(Object var1) {
  39.       SoftCache.access$800(this.this$0);
  40.       return var1 instanceof SoftCache.Entry ? this.hashEntries.remove(Entry.access$900((SoftCache.Entry)var1)) : false;
  41.    }
  42.  
  43.    // $FF: synthetic method
  44.    SoftCache$EntrySet(SoftCache var1, SoftCache.1 var2) {
  45.       this(var1);
  46.    }
  47. }
  48.